package cz.worktracker.model.entities;
// Generated 19.4.2010 0:35:56 by Hibernate Tools 3.2.1.GA


import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Task generated by hbm2java
 */
@Entity
@Table(name="task"
    ,catalog="pis10"
)
public class Task  implements java.io.Serializable {


     private Integer id;
     private int idProject;
     private String name;
     private String note;
     private Float overheadCost;

    public Task() {
    }

	
    public Task(int idProject, String name, Float overheadCost) {
        this.idProject = idProject;
        this.name = name;
        this.overheadCost = overheadCost;
    }
    public Task(int idProject, String name, String note, Float overheadCost) {
       this.idProject = idProject;
       this.name = name;
       this.note = note;
       this.overheadCost = overheadCost;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    } 
    
    @Column(name="id_project", nullable=false)
    public int getIdProject() {
        return this.idProject;
    }
    
    public void setIdProject(int idProject) {
        this.idProject = idProject;
    }
    
    @Column(name="name", nullable=false, length=32)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="note")
    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }
    
    @Column(name="overheadCost", nullable=false, precision=12, scale=0)
    public Float getOverheadCost() {
        return this.overheadCost;
    }
    
    public void setOverheadCost(Float overheadCost) {
        this.overheadCost = overheadCost;
    }

}


